(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/user/log" ], {
    "05b9": function(t, e, n) {
        function o(t) {
            return function(t) {
                if (Array.isArray(t)) return r(t);
            }(t) || function(t) {
                if ("undefined" != typeof Symbol && Symbol.iterator in Object(t)) return Array.from(t);
            }(t) || function(t, e) {
                if (t) {
                    if ("string" == typeof t) return r(t, e);
                    var n = Object.prototype.toString.call(t).slice(8, -1);
                    return "Object" === n && t.constructor && (n = t.constructor.name), "Map" === n || "Set" === n ? Array.from(t) : "Arguments" === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? r(t, e) : void 0;
                }
            }(t) || function() {
                throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
            }();
        }
        function r(t, e) {
            (null == e || e > t.length) && (e = t.length);
            for (var n = 0, o = new Array(e); n < e; n++) o[n] = t[n];
            return o;
        }
        Object.defineProperty(e, "__esModule", {
            value: !0
        }), e.default = void 0;
        var i = {
            components: {
                shoproMiniCard: function() {
                    n.e("components/shopro-mini-card/shopro-mini-card").then(function() {
                        return resolve(n("e6d5"));
                    }.bind(null, n)).catch(n.oe);
                },
                shoproEmpty: function() {
                    n.e("components/shopro-empty/shopro-empty").then(function() {
                        return resolve(n("69d8"));
                    }.bind(null, n)).catch(n.oe);
                }
            },
            data: function() {
                return {
                    isSel: !1,
                    allSel: !1,
                    routerTo: this.$Router,
                    selList: [],
                    emptyData: {
                        img: "/static/imgs/empty/empty_goods.png",
                        tip: "暂无浏览记录",
                        path: "/pages/index/index",
                        pathText: "去首页逛逛"
                    },
                    browseList: [],
                    loadStatus: "",
                    currentPage: 1,
                    lastPage: 0
                };
            },
            computed: {},
            onLoad: function() {
                this.init();
            },
            methods: {
                init: function() {
                    return Promise.all([ this.getbrowseList() ]);
                },
                onSel: function(t) {
                    var e = this, n = this.browseList, o = t.detail.value;
                    this.selList = o, n.forEach(function(t) {
                        o.includes(t.id.toString()) ? e.$set(t, "checked", !0) : e.$set(t, "checked", !1);
                    });
                },
                onSet: function() {
                    this.isSel = !this.isSel;
                },
                onAllSel: function() {
                    var e = this;
                    this.allSel = !this.allSel, this.selList = [], this.browseList.forEach(function(t) {
                        e.allSel ? (e.$set(t, "checked", !0), e.selList.push(t.id)) : e.$set(t, "checked", !1);
                    });
                },
                getbrowseList: function() {
                    var e = this;
                    e.loadStatus = "loading", e.$api("goods.access_log_list", {
                        page: e.currentPage
                    }).then(function(t) {
                        0 === t.errno && (e.browseList = [].concat(o(e.browseList), o(t.data.list)), e.lastPage = t.data.last_page, 
                        e.currentPage < t.data.last_page ? e.loadStatus = "" : e.loadStatus = "over");
                    });
                },
                cancelFavorite: function() {
                    var e = this, n = e.selList, o = this.browseList;
                    e.$api("goods.access_log_del", {
                        ids: n.join(",")
                    }).then(function(t) {
                        0 === t.errno && (e.allSel ? e.browseList = [] : e.browseList = o.filter(function(t) {
                            return !n.includes(t.id.toString());
                        }));
                    });
                },
                loadMore: function() {
                    this.currentPage < this.lastPage && (this.currentPage += 1, this.getbrowseList());
                }
            }
        };
        e.default = i;
    },
    "17c2": function(t, e, n) {
        n.r(e);
        var o, r = n("3935"), i = n("6430");
        for (o in i) "default" !== o && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(o);
        n("e51e");
        var s = n("f0c5"), r = Object(s.a)(i.default, r.b, r.c, !1, null, null, null, !1, r.a, void 0);
        e.default = r.exports;
    },
    3935: function(t, e, n) {
        n.d(e, "b", function() {
            return r;
        }), n.d(e, "c", function() {
            return i;
        }), n.d(e, "a", function() {
            return o;
        });
        var o = {
            shoproMiniCard: function() {
                return n.e("components/shopro-mini-card/shopro-mini-card").then(n.bind(null, "e6d5"));
            },
            shoproEmpty: function() {
                return n.e("components/shopro-empty/shopro-empty").then(n.bind(null, "69d8"));
            }
        }, r = function() {
            var n = this, t = (n.$createElement, n._self._c, n.browseList.length ? n.__map(n.browseList, function(t, e) {
                return {
                    $orig: n.__get_orig(t),
                    g0: n.isSel ? t.id.toString() : null
                };
            }) : null);
            n.$mp.data = Object.assign({}, {
                $root: {
                    l0: t
                }
            });
        }, i = [];
    },
    "46bd": function(t, e, o) {
        (function(t) {
            o("767a"), n(o("66fd"));
            var e = n(o("17c2"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = o, t(e.default);
        }).call(this, o("543d").createPage);
    },
    6430: function(t, e, n) {
        n.r(e);
        var o, r = n("05b9"), i = n.n(r);
        for (o in r) "default" !== o && function(t) {
            n.d(e, t, function() {
                return r[t];
            });
        }(o);
        e.default = i.a;
    },
    b033: function(t, e, n) {},
    e51e: function(t, e, n) {
        var o = n("b033");
        n.n(o).a;
    }
}, [ [ "46bd", "common/runtime", "common/vendor" ] ] ]);